//
// Created by zyq on 2025/3/23.
//

#include "iostream"

using namespace std;


static int Hour = 0;
static bool WorkFinished = false;

class Test {

public:
    static void WriteProgram() {

        if (Hour < 12) {
            cout << "12点" << endl;
        } else if (Hour < 13) {
            cout << "12~13点" << endl;

        } else if (Hour < 17) {
            cout << "13~17点" << endl;

        } else {
            if (WorkFinished) {
                cout << "当前时间:" << Hour << "下班，WorkFinished为flash为什么执行了" << endl;

            } else {
                if (Hour < 21) {
                    cout << "疲惫" << endl;
                } else {
                    cout << "sleep" << endl;

                }
            }

        }
    }
};

int main() {

    Hour = 9;
    Test::WriteProgram();
    Hour = 12;
    Test::WriteProgram();
    Hour = 15;
    Test::WriteProgram();


    WorkFinished = true;
//    WorkFinished = false;
    Test::WriteProgram();

    Hour = 20;
    Test::WriteProgram();

    Hour = 22;
    Test::WriteProgram();

    cout << "Test" << endl;
    return 0;


};



